<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Auth::routes();
Route::get('/logout', 'Auth\LoginController@logout');

Route::get('/admin', function(){
    return view('layouts.admin');
})->middleware('auth','role:admin');

//Route::get('/', ['as' => 'dashboard.index', 'uses' => 'HomeController@index']);


require base_path('WoXuanWang/Advertisement/routes.php');
require base_path('WoXuanWang/FrontEnd/routes.php');
require base_path('WoXuanWang/User/routes.php');
require base_path('WoXuanWang/Upload/routes.php');
require base_path('WoXuanWang/Settings/routes.php');
require base_path('WoXuanWang/ActionLog/routes.php');
require base_path('WoXuanWang/Dashboard/routes.php');
require base_path('WoXuanWang/Tag/routes.php');
require base_path('WoXuanWang/Video/routes.php');
require base_path('WoXuanWang/Comment/routes.php');
require base_path('WoXuanWang/MemberOrder/routes.php');